/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package asis;

/**
 *
 * @author pc tech
 */
public class Util {

    /*
     * Checks to see if a contains b, ignoring case.
     */
    public static boolean containsIgnoreCase(String a, String b) {
        a = a.toUpperCase();
        b = b.toUpperCase();
        if (a.contains(b)) {
            return true;
        } else {
            return false;
        }
    }

    /*
     * Returns true if i is > 0. False if less than 0, or is 0.
     */
    public static boolean isValid(int i) {
        if (i <= 0) {
            return false;
        } else {
            return true;
        }
    }

    /*
     * Returns true if f is > 0. False if less than 0, or is 0.
     */
    public static boolean isValid(float f) {
        if (f <= 0.0) {
            return false;
        } else {
            return true;
        }
    }
}
